<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>返回错误号对应的错误消息</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.curl-share-strerror" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">curl_share_strerror</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.1.0)</p><p class="refpurpose"><span class="refname">curl_share_strerror</span> &mdash; <span class="dc-title">返回错误号对应的错误消息</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.curl-share-strerror-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>curl_share_strerror</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$errornum</code></span>
   ) : <span class="type">string</span></div>

  <p class="para rdfs-comment">
   返回错误号对应的错误消息。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.curl-share-strerror-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<code class="parameter">errornum</code></dt>

    <dd>

     <p class="para">
      <a href="http://curl.haxx.se/libcurl/c/libcurl_errors.html" class="link external">&raquo;&nbsp;cURL error codes</a> 常量。
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.curl-share-strerror-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回错误消息。如果传入了无效的错误号，返回 <strong><code>NULL</code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.curl-share-strerror-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member"><span class="function"><a href="curl_share_errno.html" class="function" rel="rdfs-seeAlso">curl_share_errno()</a> - 返回共享 curl 句柄的最后一次错误号</span></li>
   <li class="member"><span class="function"><a href="curl_strerror.html" class="function" rel="rdfs-seeAlso">curl_strerror()</a> - 返回错误代码的字符串描述</span></li>
  </ul>
 </div>


</div></div></div></body></html>